When the `QuickMenuToggle` was a discrete button, it could be set to
toggle mode, but the inner buttons no longer reacts as expected.
Bind the `toggle-mode` property between the `QuickMenuToggle` and its
contents so they behave as single toggle when enabled.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2664>
});
this._box.add_child(this._menuButton);
+ this.bind_property('toggle-mode',
+ contents, 'toggle-mode',
+ GObject.BindingFlags.SYNC_CREATE);
this.bind_property('checked',
contents, 'checked',
- GObject.BindingFlags.SYNC_CREATE);
+ GObject.BindingFlags.SYNC_CREATE |
+ GObject.BindingFlags.BIDIRECTIONAL);
this.bind_property('title',
contents, 'title',
GObject.BindingFlags.SYNC_CREATE);